﻿using System;
using LASMobile.Classes;

namespace LASMobile
{
    public partial class Menu : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session[Constants.SESSION_USER] == null)
            {
                Response.Redirect("Default.aspx", true);
            }
        }

        protected void CatalogoButtonClick(object sender, EventArgs e)
        {
            Response.Redirect("InformacionDelArticulo.aspx", true);
        }

        protected void PedidoButtonClick(object sender, EventArgs e)
        {
            Response.Redirect("PedidosDocumento.aspx", true);
        }

        protected void ConsultaButtonClick(object sender, EventArgs e)
        {
            Response.Redirect("MenuConsultas.aspx", true);
        }

        protected void CloseSession(object sender, EventArgs e)
        {
            Session[Constants.SESSION_USER] = null;
            Session[Constants.SESSION_SALE] = null;
            Response.Redirect("Default.aspx", true);
        }
    }
}